tree-wide: Convert to using autoptr(GString) vs g_string_free(...,TRUE)
authorColin Walters <walters@verbum.org>
Fri, 5 May 2017 14:44:49 +0000 (10:44 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 5 May 2017 15:10:51 +0000 (15:10 +0000)
commit712bf219141bdb13c42629d518578b62906fcaa7
tree4d1c62122eee6dbed8b1af8549fe7df4b3c8e90c
parentbf9772f2316a567566c20979e5247b2928287253
tree-wide: Convert to using autoptr(GString) vs g_string_free(...,TRUE)

If we're freeing the segment, it's basically always better to use
`autoptr()`.  Fewer lines, more reliable, etc.

Noticed an instance of this in the pull code while reviewing a different PR,
decided to do a grep for it and fix it tree wide.

Closes: #836
Approved by: pwithnall
13 files changed:
src/libostree/ostree-bootloader-grub2.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.c
src/ostree/ot-admin-builtin-instutil.c
src/ostree/ot-admin-builtin-status.c
src/ostree/ot-builtin-admin.c
src/ostree/ot-builtin-commit.c
src/ostree/ot-builtin-ls.c
src/ostree/ot-builtin-pull.c
src/ostree/ot-builtin-remote.c
src/ostree/ot-main.c
tests/test-gpg-verify-result.c